package main
import ("fmt"
"time")
func main(){
	i:=1
	fmt.Println("Write",i,"as")
	switch i {
	case 1:
		fmt.Println("one")
		break;
	case 2:
		fmt.Println("tow")
		break
	case 3:
		fmt.Println("three")
		break
	}

	switch time.Now().Weekday(){
	case time.Saturday,time.Sunday:
		fmt.Println("It is the Weekend")
		break
	default:
		fmt.Println("It is Weekday")
	}

	t:=time.Now()
	switch {
	case t.Hour()<12:
		fmt.Println("It is before noon")
		break
	default:
		fmt.Println("It is after noon")
	}

	whatAmId:=func(i interface{}){
		switch t:=i.(type){
		case bool:
			fmt.Println("It is bool")
			break
		case int:
			fmt.Println("It is int")
			break
		default:
			fmt.Println("do not kown Type %T",t)
		}
	}

	whatAmId(true)
	whatAmId(1)
	whatAmId("she")
}